package com.molin.innerClass.lambdalianxi1;

public class ShowHandlerDemo{
    public static void main(String[] args) {
        useShowHandler(()->{
            System.out.println("show...");
        });

        useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("show.... lambda");
            }
        });
    }

    public static void useShowHandler(ShowHandler showHandler){
        showHandler.show();
    }
}
